home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / asmgen3.arc / A3.BAT next >
DOS Batch File  |  1989-04-19  |  979b  |  37 lines

  1. CLS
  2. masm asmgen3,asmgen3,asmgen3;
  3. if errorlevel == 1 goto error1
  4. link asmgen3 ;
  5. rem LINK normally issues a missing STACK segment warning here.
  6. del ASMGEN3.COM
  7. exe2bin ASMGEN3 ASMGEN3.COM
  8. if not exist ASMGEN3.com goto ERROR
  9. del asmgen3.obj
  10. del asmgen3.exe
  11. rem now try ASMGEN3 on ASMGEN.COM
  12. asmgen3 asmgen.com asm3.asm ;
  13. rem now reassemble ASMGEN as ASM3
  14. masm asm3,asm3,asm3;
  15. if errorlevel == 1 goto error2
  16. rem Don't worry about 116 warning errors from MASM (ver 5.0)
  17. link asm3 ;
  18. rem LINK normally issues a missing STACK segment warning here.
  19. del ASM3.COM
  20. exe2bin ASM3 ASM3.COM
  21. if not exist asm3.com goto ERROR2
  22. del asm3.obj
  23. del asm3.exe
  24. rem now compare the results
  25. FC/B ASMGEN.COM ASM3.COM
  26. goto end
  27. :error
  28. echo -- Error converting file .EXE to .COM
  29. goto end
  30. :error1
  31. echo -- Assembly error, asmgen3.OBJ not created, see asmgen3.LST for errors. --
  32. goto end
  33. :error2
  34. echo -- Assembly error, asm3.OBJ not created, see asm3.LST for errors. --
  35. :end
  36. 
  37.